#include "linklist.h"

int main(int argc, char const *argv[])
{
    //初始化列表
    linklist head = init_list();

    //插入新节点
    student zhangsan ={"张三", 20, 78};
    student lisi     ={"李四", 22, 86};
    student wangwu   ={"王五", 25, 66};
    student liuliu   ={"刘六", 21, 72};
    student tianqi   ={"田七", 23, 80};

    add_list(head, new_node(&zhangsan));
    add_list(head, new_node(&lisi));
    add_list(head, new_node(&wangwu));
    add_list(head, new_node(&liuliu));
    add_list(head, new_node(&tianqi));

    //遍历输出节点
    list_for_each(head);

    //对链表进行操作
    

    //删除链表
    destory_list(head);

    return 0;
}
